package com.mes.biz.service;

import com.github.pagehelper.PageInfo;
import com.mes.biz.domain.BizProduct;
import com.mes.biz.domain.BizPurchase;
import com.mes.biz.domain.BizSupplierPayable;
import com.mes.biz.domain.vo.PurchaseProductVo;
import com.mes.common.core.service.BaseService;

import java.util.List;

/**
 * 采购单Service接口
 * @author wy
 * @email wy
 * @date 2023-05-19
 */
public interface BizPurchaseService extends BaseService<BizPurchase> {
    /**
     * 创建采购单
     * @param bizPurchase
     * @return
     */
    boolean createPurchase(BizPurchase bizPurchase);

    /**
     * 修改采购单
     * @param bizPurchase
     * @return
     */
    boolean updatePurchase(BizPurchase bizPurchase);

    /**
     * 审核采购单
     * @param id
     * @return
     */
    public boolean auditPurchase(String id);

    /**
     * 分页查询采购明细数据
     * @param bizPurchase
     * @return
     */
    PageInfo<PurchaseProductVo> listPurchaseStatPage(BizPurchase bizPurchase);

    /**
     * 查询采购明细数据
     * @param bizPurchase
     * @return
     */
    List<PurchaseProductVo> listPurchaseStat(BizPurchase bizPurchase);
}
